libxc: duplicate snippet to allocate p2m_host array
authorWei Liu <wei.liu2@citrix.com>
Mon, 16 Mar 2015 09:52:21 +0000 (09:52 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 18 Mar 2015 12:04:54 +0000 (12:04 +0000)
commit61e8e8079a4e984600713b492944d6427b9f77cf
treebe7281aeae19071ef4fd672ad859a504c9461995
parent28b3ca49b0f1fbe945342973fbdc8c5e56481213
libxc: duplicate snippet to allocate p2m_host array

Currently all in tree code doesn't set the superpage flag, I would just
remove superpage support if I can, but Konrad wants it retained for the
moment.

As I'm going to change the p2m_host array allocation, duplicate the code
snippet to allocate p2m_host array in this patch, so that we retain the
behaviour in superpage case.

This patch introduces no functional change and it will make future patch
easier to review. Also removed one stray tab while I was there.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Konrad Wilk <konrad.wilk@oracle.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_dom_x86.c